import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home.vue'
import Table from '@/components/Table.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    components: {
      default:HomeView,
      footer:Table
    }
  },
  {
    path: '/about',
    name: 'about',
    components: {
      default:() => import('../views/shop.vue'),
      footer:Table
    }
  },
  {
    path: '/xq',
    name: 'xq',
    components: {
      default:() => import('../views/xq.vue'),
      footer:Table
    }
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
